package com.eamois.action.graph;

import java.util.Collection;

import com.eamois.action.BaseAction;
import com.eamois.domain.graph.GraphJobCard;
import com.eamois.domain.graph.GraphTechnologyType;
import com.eamois.service.graph.GraphJobCardService;
import com.eamois.util.ServiceFactory;

public class GraphJobCardAction extends BaseAction {
	private GraphJobCardService graphJobCardService ;

	

	public GraphJobCardService getGraphJobCardService() {
		return graphJobCardService;
	}


	public void setGraphJobCardService(
			GraphJobCardService graphJobCardService) {
		this.graphJobCardService = graphJobCardService;
	}


	public GraphJobCardAction() {
		setGraphJobCardService((GraphJobCardService) ServiceFactory.getInstance()
				.getBean("graphJobCardService"));
	}
	

	public Collection<GraphJobCard> findAll(){
		return this.getGraphJobCardService().findAll();
	}
	public Collection<GraphJobCard> findJobCardByTech(GraphTechnologyType graphTechnologyType){
		return this.getGraphJobCardService().findJobCardByTech(graphTechnologyType);
	}
	public void save(GraphJobCard jobCard){
		 this.getGraphJobCardService().save(jobCard);
	}
	public void remove(GraphJobCard jobCard){
		this.getGraphJobCardService().remove(jobCard);
	}
	

}
